import u from "../utils";
import { FORMEDITRIGHT } from "../constants";
import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

const _api = u.api(FORMEDITRIGHT);

export default {
  apply: params => _api('apply', {
    type: 'post',
    data: params
  }),
  applyMyself: (appid) => _api('processApplyMyself', { data: { appid: appid} }),
}